@echo off

echo Starting up Fastsyncer...

set CURRENT_DIR=%cd%
echo %CURRENT_DIR%

rem java -jar fastsyncer-server-0.0.1-SNAPSHOT.jar %CURRENT_DIR%

set SERVER_OPTS=-Xms512m -Xmx1024m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
echo %SERVER_OPTS%
java %SERVER_OPTS% -Dfile.encoding=utf8 -Djava.ext.dirs=./lib -classpath ./conf org.fastsyncer.server.jetty.JettyServer %CURRENT_DIR%